-- GENERATED SPELL FOR [Dragonflayer Thane] --


function spell0_23660(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23660', 10273, 1)
end

function spell1_23660(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23660', 30323, 1)
end

function Sorts_23660(pUnit, Event)
local choix_sorts_23660 = math.random(0, 1)
if choix_sorts_23660 == 0 then
pUnit:RegisterEvent('spell0_23660', 1, 1)
end
if choix_sorts_23660 == 1 then
pUnit:RegisterEvent('spell1_23660', 1, 1)
end
end

function mob23660_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23660', math.random(1500, 3000), 1)
end

function mob23660_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23660_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23660_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23660, 1, 'mob23660_Action')
RegisterUnitEvent(23660, 2, 'mob23660_Leave')
RegisterUnitEvent(23660, 3, 'mob23660_Kill')
RegisterUnitEvent(23660, 4, 'mob23660_Die')
